<section id="main-content">
    <section class="wrapper">
        <!-- 主体内容 -->
        <div class="row">
            <div class="col-lg-12">

                <div ng-controller="surveyCtrl">
                    <div class="panel">
                        <div class="panel-heading">合理化建议</div>
                        <div class="panel-body">
                            <input type="text" class="form-control customerForm" placeholder="问题描述：请具体描述问题现象" ng-model="survey.quesDes">
                            <textarea class="form-control customerForm" style="margin-top: 15px;resize: none;height: 150px;"
                                ng-model="survey.question" maxlength="120"  placeholder="问题解决建议：您对问题如何解决的具体建议"></textarea>
                            <p class="default-buttons">
                                <a href="javascript:void(0);" class="button-back btn btn-info" ng-click="clear()">重置</a>
                                <a href="javascript:void(0);" class="button-next  btn btn-info" ng-click="updateContent()">确认</a>
                            </p>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="panel-heading">我的合理化建议</div>
                        <div class="panel-body">
                            <!-- ftl -->
                            <table class="table table-bordered">
                                <thead>
                                    <th>
                                        提交时间
                                    </th>
                                    <th>
                                        提交人
                                    </th>
                                    <th>
                                        具体内容
                                    </th>
                                </thead>
                                <tbody>
                                    <tr ng-repeat="tempSurvey in surveys">
                                        <td>
                                            {{ tempSurvey.createTime | date:'yyyy-MM-dd HH:mm' }}
                                        </td>
                                        <td>
                                            {{ tempSurvey.submitter }}
                                        </td>
                                        <td>
                                            {{ tempSurvey.question }}
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <script>
            var height = $(".nav").height();
            //            hui(".scroll-wrapper").scrollY(height);
            $(".i-user").click(function () {
                var status = $(".user-shide").css("display");
                if (status == "none") {
                    $(".user-shide").slideDown(300);
                } else {
                    $(".user-shide").slideUp(300);
                }
            });

            function getwidth() {
                var nwidth = $(".nav").width();
                var width = $(document.body).width() - nwidth;
                $('.i-header').css("width", width + "px");
                if (width == 0) {
                    $('.i-header').css("width", "1107px");
                }
            };
            getwidth();
            $(".selinfo").click(function () {
                var index = layer.open({
                    type: 2,
                    title: "个人信息",
                    content: "index/personInfo.html",
                });
                layer.full(index);
            })
            $(".editpwd").click(function () {
                var index = layer.open({
                    type: 2,
                    title: "修改密码",
                    content: "index/password.html",
                });
                layer.full(index);
            })
        </script>
        <!--<script src="/Certus/js/survey/ng-survey.js"></script>-->
    </section>
</section>